//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.ruoyi.live.base.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.List;

public class Task implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(
            value = "id",
            type = IdType.AUTO
    )
    private Long id;
    @TableField(value = "task_name", condition = SqlCondition.LIKE)
    private String taskName;
    @OrderBy(sort = 1)
    private Long catalogId;
    @OrderBy(sort = 2)
    private Integer orders;
    private Long createUser;
    private Long createTime;
    private Integer state;
    private Integer taskScore;
    private String url;
    private Long platformId;
    private Integer taskType;
    @TableField(exist = false, condition = "")
    private String catalogName;
    @TableField(
            exist = false
    )
    private Double count;
    @TableField(
            exist = false
    )
    private Long mstId;
    @TableField(
            exist = false
    )
    private Integer studentTaskState;
    @TableField(
            exist = false
    )
    private List<TaskSource> sources;
    @TableField(
            exist = false
    )
    private List<TaskModule> modules;
    @TableField(
            exist = false
    )
    private TaskSource example;
    @TableField(
            exist = false
    )
    private TaskSource guided;
    @TableField(
            exist = false
    )
    private Integer allCount;
    @TableField(
            exist = false
    )
    private Integer doCount;
    @TableField(
            exist = false
    )
    private Double avg;
    @TableField(
            exist = false
    )
    private String userLoginName;
    @TableField(
            exist = false
    )
    private Double score;
    @TableField(
            exist = false
    )
    private String stateName;
    @TableField(
            exist = false
    )
    private Integer scoreState;

    public Task() {
    }

    public Long getId() {
        return this.id;
    }

    public String getTaskName() {
        return this.taskName;
    }

    public Long getCatalogId() {
        return this.catalogId;
    }

    public Integer getOrders() {
        return this.orders;
    }

    public Long getCreateUser() {
        return this.createUser;
    }

    public Long getCreateTime() {
        return this.createTime;
    }

    public Integer getState() {
        return this.state;
    }

    public Integer getTaskScore() {
        return this.taskScore;
    }

    public String getUrl() {
        return this.url;
    }

    public Long getPlatformId() {
        return this.platformId;
    }

    public Integer getTaskType() {
        return this.taskType;
    }

    public String getCatalogName() {
        return this.catalogName;
    }

    public Double getCount() {
        return this.count;
    }

    public Long getMstId() {
        return this.mstId;
    }

    public Integer getStudentTaskState() {
        return this.studentTaskState;
    }

    public List<TaskSource> getSources() {
        return this.sources;
    }

    public List<TaskModule> getModules() {
        return this.modules;
    }

    public TaskSource getExample() {
        return this.example;
    }

    public TaskSource getGuided() {
        return this.guided;
    }

    public Integer getAllCount() {
        return this.allCount;
    }

    public Integer getDoCount() {
        return this.doCount;
    }

    public Double getAvg() {
        return this.avg;
    }

    public String getUserLoginName() {
        return this.userLoginName;
    }

    public Double getScore() {
        return this.score;
    }

    public String getStateName() {
        return this.stateName;
    }

    public Integer getScoreState() {
        return this.scoreState;
    }

    public Task setId(final Long id) {
        this.id = id;
        return this;
    }

    public Task setTaskName(final String taskName) {
        this.taskName = taskName;
        return this;
    }

    public Task setCatalogId(final Long catalogId) {
        this.catalogId = catalogId;
        return this;
    }

    public Task setOrders(final Integer orders) {
        this.orders = orders;
        return this;
    }

    public Task setCreateUser(final Long createUser) {
        this.createUser = createUser;
        return this;
    }

    public Task setCreateTime(final Long createTime) {
        this.createTime = createTime;
        return this;
    }

    public Task setState(final Integer state) {
        this.state = state;
        return this;
    }

    public Task setTaskScore(final Integer taskScore) {
        this.taskScore = taskScore;
        return this;
    }

    public Task setUrl(final String url) {
        this.url = url;
        return this;
    }

    public Task setPlatformId(final Long platformId) {
        this.platformId = platformId;
        return this;
    }

    public Task setTaskType(final Integer taskType) {
        this.taskType = taskType;
        return this;
    }

    public Task setCatalogName(final String catalogName) {
        this.catalogName = catalogName;
        return this;
    }

    public Task setCount(final Double count) {
        this.count = count;
        return this;
    }

    public Task setMstId(final Long mstId) {
        this.mstId = mstId;
        return this;
    }

    public Task setStudentTaskState(final Integer studentTaskState) {
        this.studentTaskState = studentTaskState;
        return this;
    }

    public Task setSources(final List<TaskSource> sources) {
        this.sources = sources;
        return this;
    }

    public Task setModules(final List<TaskModule> modules) {
        this.modules = modules;
        return this;
    }

    public Task setExample(final TaskSource example) {
        this.example = example;
        return this;
    }

    public Task setGuided(final TaskSource guided) {
        this.guided = guided;
        return this;
    }

    public Task setAllCount(final Integer allCount) {
        this.allCount = allCount;
        return this;
    }

    public Task setDoCount(final Integer doCount) {
        this.doCount = doCount;
        return this;
    }

    public Task setAvg(final Double avg) {
        this.avg = avg;
        return this;
    }

    public Task setUserLoginName(final String userLoginName) {
        this.userLoginName = userLoginName;
        return this;
    }

    public Task setScore(final Double score) {
        this.score = score;
        return this;
    }

    public Task setStateName(final String stateName) {
        this.stateName = stateName;
        return this;
    }

    public Task setScoreState(final Integer scoreState) {
        this.scoreState = scoreState;
        return this;
    }

    public String toString() {
        return "Task(id=" + this.getId() + ", taskName=" + this.getTaskName() + ", catalogId=" + this.getCatalogId() + ", orders=" + this.getOrders() + ", createUser=" + this.getCreateUser() + ", createTime=" + this.getCreateTime() + ", state=" + this.getState() + ", taskScore=" + this.getTaskScore() + ", url=" + this.getUrl() + ", platformId=" + this.getPlatformId() + ", taskType=" + this.getTaskType() + ", catalogName=" + this.getCatalogName() + ", count=" + this.getCount() + ", mstId=" + this.getMstId() + ", studentTaskState=" + this.getStudentTaskState() + ", sources=" + this.getSources() + ", modules=" + this.getModules() + ", example=" + this.getExample() + ", guided=" + this.getGuided() + ", allCount=" + this.getAllCount() + ", doCount=" + this.getDoCount() + ", avg=" + this.getAvg() + ", userLoginName=" + this.getUserLoginName() + ", score=" + this.getScore() + ", stateName=" + this.getStateName() + ", scoreState=" + this.getScoreState() + ")";
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof Task)) {
            return false;
        } else {
            Task other = (Task)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$id = this.getId();
                Object other$id = other.getId();
                if (this$id == null) {
                    if (other$id != null) {
                        return false;
                    }
                } else if (!this$id.equals(other$id)) {
                    return false;
                }

                Object this$taskName = this.getTaskName();
                Object other$taskName = other.getTaskName();
                if (this$taskName == null) {
                    if (other$taskName != null) {
                        return false;
                    }
                } else if (!this$taskName.equals(other$taskName)) {
                    return false;
                }

                Object this$catalogId = this.getCatalogId();
                Object other$catalogId = other.getCatalogId();
                if (this$catalogId == null) {
                    if (other$catalogId != null) {
                        return false;
                    }
                } else if (!this$catalogId.equals(other$catalogId)) {
                    return false;
                }

                label302: {
                    Object this$orders = this.getOrders();
                    Object other$orders = other.getOrders();
                    if (this$orders == null) {
                        if (other$orders == null) {
                            break label302;
                        }
                    } else if (this$orders.equals(other$orders)) {
                        break label302;
                    }

                    return false;
                }

                label295: {
                    Object this$createUser = this.getCreateUser();
                    Object other$createUser = other.getCreateUser();
                    if (this$createUser == null) {
                        if (other$createUser == null) {
                            break label295;
                        }
                    } else if (this$createUser.equals(other$createUser)) {
                        break label295;
                    }

                    return false;
                }

                Object this$createTime = this.getCreateTime();
                Object other$createTime = other.getCreateTime();
                if (this$createTime == null) {
                    if (other$createTime != null) {
                        return false;
                    }
                } else if (!this$createTime.equals(other$createTime)) {
                    return false;
                }

                label281: {
                    Object this$state = this.getState();
                    Object other$state = other.getState();
                    if (this$state == null) {
                        if (other$state == null) {
                            break label281;
                        }
                    } else if (this$state.equals(other$state)) {
                        break label281;
                    }

                    return false;
                }

                label274: {
                    Object this$taskScore = this.getTaskScore();
                    Object other$taskScore = other.getTaskScore();
                    if (this$taskScore == null) {
                        if (other$taskScore == null) {
                            break label274;
                        }
                    } else if (this$taskScore.equals(other$taskScore)) {
                        break label274;
                    }

                    return false;
                }

                Object this$url = this.getUrl();
                Object other$url = other.getUrl();
                if (this$url == null) {
                    if (other$url != null) {
                        return false;
                    }
                } else if (!this$url.equals(other$url)) {
                    return false;
                }

                Object this$platformId = this.getPlatformId();
                Object other$platformId = other.getPlatformId();
                if (this$platformId == null) {
                    if (other$platformId != null) {
                        return false;
                    }
                } else if (!this$platformId.equals(other$platformId)) {
                    return false;
                }

                label253: {
                    Object this$taskType = this.getTaskType();
                    Object other$taskType = other.getTaskType();
                    if (this$taskType == null) {
                        if (other$taskType == null) {
                            break label253;
                        }
                    } else if (this$taskType.equals(other$taskType)) {
                        break label253;
                    }

                    return false;
                }

                label246: {
                    Object this$catalogName = this.getCatalogName();
                    Object other$catalogName = other.getCatalogName();
                    if (this$catalogName == null) {
                        if (other$catalogName == null) {
                            break label246;
                        }
                    } else if (this$catalogName.equals(other$catalogName)) {
                        break label246;
                    }

                    return false;
                }

                Object this$count = this.getCount();
                Object other$count = other.getCount();
                if (this$count == null) {
                    if (other$count != null) {
                        return false;
                    }
                } else if (!this$count.equals(other$count)) {
                    return false;
                }

                label232: {
                    Object this$mstId = this.getMstId();
                    Object other$mstId = other.getMstId();
                    if (this$mstId == null) {
                        if (other$mstId == null) {
                            break label232;
                        }
                    } else if (this$mstId.equals(other$mstId)) {
                        break label232;
                    }

                    return false;
                }

                Object this$studentTaskState = this.getStudentTaskState();
                Object other$studentTaskState = other.getStudentTaskState();
                if (this$studentTaskState == null) {
                    if (other$studentTaskState != null) {
                        return false;
                    }
                } else if (!this$studentTaskState.equals(other$studentTaskState)) {
                    return false;
                }

                label218: {
                    Object this$sources = this.getSources();
                    Object other$sources = other.getSources();
                    if (this$sources == null) {
                        if (other$sources == null) {
                            break label218;
                        }
                    } else if (this$sources.equals(other$sources)) {
                        break label218;
                    }

                    return false;
                }

                Object this$modules = this.getModules();
                Object other$modules = other.getModules();
                if (this$modules == null) {
                    if (other$modules != null) {
                        return false;
                    }
                } else if (!this$modules.equals(other$modules)) {
                    return false;
                }

                Object this$example = this.getExample();
                Object other$example = other.getExample();
                if (this$example == null) {
                    if (other$example != null) {
                        return false;
                    }
                } else if (!this$example.equals(other$example)) {
                    return false;
                }

                Object this$guided = this.getGuided();
                Object other$guided = other.getGuided();
                if (this$guided == null) {
                    if (other$guided != null) {
                        return false;
                    }
                } else if (!this$guided.equals(other$guided)) {
                    return false;
                }

                label190: {
                    Object this$allCount = this.getAllCount();
                    Object other$allCount = other.getAllCount();
                    if (this$allCount == null) {
                        if (other$allCount == null) {
                            break label190;
                        }
                    } else if (this$allCount.equals(other$allCount)) {
                        break label190;
                    }

                    return false;
                }

                label183: {
                    Object this$doCount = this.getDoCount();
                    Object other$doCount = other.getDoCount();
                    if (this$doCount == null) {
                        if (other$doCount == null) {
                            break label183;
                        }
                    } else if (this$doCount.equals(other$doCount)) {
                        break label183;
                    }

                    return false;
                }

                Object this$avg = this.getAvg();
                Object other$avg = other.getAvg();
                if (this$avg == null) {
                    if (other$avg != null) {
                        return false;
                    }
                } else if (!this$avg.equals(other$avg)) {
                    return false;
                }

                label169: {
                    Object this$userLoginName = this.getUserLoginName();
                    Object other$userLoginName = other.getUserLoginName();
                    if (this$userLoginName == null) {
                        if (other$userLoginName == null) {
                            break label169;
                        }
                    } else if (this$userLoginName.equals(other$userLoginName)) {
                        break label169;
                    }

                    return false;
                }

                label162: {
                    Object this$score = this.getScore();
                    Object other$score = other.getScore();
                    if (this$score == null) {
                        if (other$score == null) {
                            break label162;
                        }
                    } else if (this$score.equals(other$score)) {
                        break label162;
                    }

                    return false;
                }

                Object this$stateName = this.getStateName();
                Object other$stateName = other.getStateName();
                if (this$stateName == null) {
                    if (other$stateName != null) {
                        return false;
                    }
                } else if (!this$stateName.equals(other$stateName)) {
                    return false;
                }

                Object this$scoreState = this.getScoreState();
                Object other$scoreState = other.getScoreState();
                if (this$scoreState == null) {
                    if (other$scoreState != null) {
                        return false;
                    }
                } else if (!this$scoreState.equals(other$scoreState)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof Task;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $id = this.getId();
        int result1 = result * 59 + ($id == null ? 43 : $id.hashCode());
        Object $taskName = this.getTaskName();
        result1 = result * 59 + ($taskName == null ? 43 : $taskName.hashCode());
        Object $catalogId = this.getCatalogId();
        result1 = result * 59 + ($catalogId == null ? 43 : $catalogId.hashCode());
        Object $orders = this.getOrders();
        result1 = result * 59 + ($orders == null ? 43 : $orders.hashCode());
        Object $createUser = this.getCreateUser();
        result1 = result * 59 + ($createUser == null ? 43 : $createUser.hashCode());
        Object $createTime = this.getCreateTime();
        result1 = result * 59 + ($createTime == null ? 43 : $createTime.hashCode());
        Object $state = this.getState();
        result1 = result * 59 + ($state == null ? 43 : $state.hashCode());
        Object $taskScore = this.getTaskScore();
        result1 = result * 59 + ($taskScore == null ? 43 : $taskScore.hashCode());
        Object $url = this.getUrl();
        result1 = result * 59 + ($url == null ? 43 : $url.hashCode());
        Object $platformId = this.getPlatformId();
        result1 = result * 59 + ($platformId == null ? 43 : $platformId.hashCode());
        Object $taskType = this.getTaskType();
        result1 = result * 59 + ($taskType == null ? 43 : $taskType.hashCode());
        Object $catalogName = this.getCatalogName();
        result1 = result * 59 + ($catalogName == null ? 43 : $catalogName.hashCode());
        Object $count = this.getCount();
        result1 = result * 59 + ($count == null ? 43 : $count.hashCode());
        Object $mstId = this.getMstId();
        result1 = result * 59 + ($mstId == null ? 43 : $mstId.hashCode());
        Object $studentTaskState = this.getStudentTaskState();
        result1 = result * 59 + ($studentTaskState == null ? 43 : $studentTaskState.hashCode());
        Object $sources = this.getSources();
        result1 = result * 59 + ($sources == null ? 43 : $sources.hashCode());
        Object $modules = this.getModules();
        result1 = result * 59 + ($modules == null ? 43 : $modules.hashCode());
        Object $example = this.getExample();
        result1 = result * 59 + ($example == null ? 43 : $example.hashCode());
        Object $guided = this.getGuided();
        result1 = result * 59 + ($guided == null ? 43 : $guided.hashCode());
        Object $allCount = this.getAllCount();
        result1 = result * 59 + ($allCount == null ? 43 : $allCount.hashCode());
        Object $doCount = this.getDoCount();
        result1 = result * 59 + ($doCount == null ? 43 : $doCount.hashCode());
        Object $avg = this.getAvg();
        result1 = result * 59 + ($avg == null ? 43 : $avg.hashCode());
        Object $userLoginName = this.getUserLoginName();
        result1 = result * 59 + ($userLoginName == null ? 43 : $userLoginName.hashCode());
        Object $score = this.getScore();
        result1 = result * 59 + ($score == null ? 43 : $score.hashCode());
        Object $stateName = this.getStateName();
        result1 = result * 59 + ($stateName == null ? 43 : $stateName.hashCode());
        Object $scoreState = this.getScoreState();
        result1 = result * 59 + ($scoreState == null ? 43 : $scoreState.hashCode());
        return result1;
    }
}
